﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace MoneyLover.Pages
{
    public partial class ketquatinhlai : PhoneApplicationPage
    {
        public ketquatinhlai()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.GoBack();
        }

        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            loadreference();
        }

        private void loadreference()
        {
            String sotien = NavigationContext.QueryString["sotien"];
            String sothang = NavigationContext.QueryString["sothang"];
            String tienlai=NavigationContext.QueryString["tienlai"];
            String tongtien=NavigationContext.QueryString["tongtien"];
            if (!String.IsNullOrEmpty(sotien))
            {
                txtsotien.Text = sotien;
            }
            if (!String.IsNullOrEmpty(sothang))
            {
                txtsothang.Text = sothang;
            }
            if (!String.IsNullOrEmpty(tienlai))
            {
                txttienlai.Text = tienlai;
            }
            if (!String.IsNullOrEmpty(tongtien))
            {
                txttongtien.Text = tongtien;
            }
        }
    }
}